package com.sunny.design.decorator.gper;

/**
 * @author Sunny
 * @date 2020/3/5
 */
public class GperTest {
    public static void main(String[] args) {
        Gper gper;

        gper = new BaseGperNavigate();
        System.out.println("未登录下默认导航条: " + gper.navigate());

        User user = new User();
        user.setName("Sunny");
        user.setPerms("vip");

        gper = new VipGperNavigateDecorator(gper, user);
        System.out.println("登录后导航条: " + gper.navigate());
    }
}
